// 
// Decompiled by Procyon v0.5.36
// 

package com.orange.boot.dev1.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@ApiModel("News对象")
@EqualsAndHashCode
public class News implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.ASSIGN_ID
    )
    private String id;
    @ApiModelProperty("资讯标题")
    private String title;
    @ApiModelProperty("资讯图片")
    private String img;
    @ApiModelProperty("资讯正文")
    private String text;
    @ApiModelProperty("资讯作者")
    private String author;
    @ApiModelProperty("资讯发布时间")
    private Date publishTime;
    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer isDeleted;
    @TableField(
            fill = FieldFill.INSERT
    )
    @ApiModelProperty("创建时间")
    private LocalDateTime gmtCreate;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    @ApiModelProperty("更新时间")
    private Date gmtModified;

    public News() {
    }

    public String getId() {
        return this.id;
    }

    public String getTitle() {
        return this.title;
    }

    public String getImg() {
        return this.img;
    }

    public String getText() {
        return this.text;
    }

    public String getAuthor() {
        return this.author;
    }

    public Date getPublishTime() {
        return this.publishTime;
    }

    public Integer getIsDeleted() {
        return this.isDeleted;
    }

    public LocalDateTime getGmtCreate() {
        return this.gmtCreate;
    }

    public Date getGmtModified() {
        return this.gmtModified;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String toString() {
        return "News(id=" + this.getId() + ", title=" + this.getTitle() + ", img=" + this.getImg() + ", text=" + this.getText() + ", author=" + this.getAuthor() + ", publishTime=" + this.getPublishTime() + ", isDeleted=" + this.getIsDeleted() + ", gmtCreate=" + this.getGmtCreate() + ", gmtModified=" + this.getGmtModified() + ")";
    }
}
